<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>错误 - 七牛云盘系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="/css/error.css">
</head>
<body>
    <div class="container mt-5">
        <div class="error-container">
            <div class="error-code error-default" th:text="${status != null ? status : '错误'}">错误</div>
            <div class="error-message" th:text="${error != null ? error : '发生未知错误'}">发生未知错误</div>
            <p class="mb-4" th:text="${friendlyMessage != null ? friendlyMessage : '请尝试刷新页面，或稍后再试'}">请尝试刷新页面，或稍后再试</p>
            
            <div class="d-flex justify-content-center gap-2 mb-3">
                <a href="/" class="btn btn-primary">返回首页</a>
                <a href="/diagnose" class="btn btn-outline-secondary">诊断页面</a>
                <a href="/diagnose/upload" class="btn btn-outline-info">上传测试页面</a>
            </div>
            
            <!-- 显示更多技术细节，帮助诊断 -->
            <div class="mt-4 text-start bg-light p-3 rounded" th:if="${trace != null}">
                <h5 class="text-muted fs-6">错误详情：</h5>
                <pre class="error-trace" th:text="${trace}"></pre>
            </div>
        </div>
    </div>
</body>
</html> 